import java.io.*;
import java.net.*;
import java.util.Scanner;

class SimpleArenaBroadcaster {

	public static void main(String args[]) throws Exception {
		Scanner scanner = new Scanner(System.in);
		boolean done = false;
		int port = 11000;
		Arena arena = new Arena(port);
		arena.start();
		while (!done){
			String s = scanner.nextLine();
			arena.handleCommands(s);
		}
		
	}

}